﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ShowBrowserAndIp
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string browserType = Request.Browser.Type;
            string ip = Request.UserHostAddress;
            ltMessage.Text += "You browser is " + browserType + "<br />" +
                "Your IP is " + ip;
        }
    }
}